<% domid = "list_#{artifact.id}" %>
<% gripid = "grip_#{artifact.id}" %>
<li class='list_item' id='<%= gripid %>' style='padding:5px;'>
<span class='list_item' id='<%=domid%>' style='cursor:move;' onmouseup="click('<%=domid%>')">
<%if artifact.class == FlickrImage%>
<%= image_tag(artifact.title, :size => "128x128")%>
<%else%>
<b><%= artifact.title%></b>
<%end%>
</span>:
<%= auto_link artifact.content%><%# link_to artifact.title, artifact_path(artifact)%>
<%= draggable_element(domid, :ghosting=>true, :revert=>true) %>
<% if context_present%>
  <%= link_to_remote '-', :url=>{:controller=>'artifacts',:action=>'remove_relations',:id=>artifact.id}, :complete => evaluate_remote_response, :update => 'artifacts'%></li>
<% end%>
